<template>
    <div class="nvb_logo">
        <img
            src="/image/zt2.png"
            v-if="store.themeString == 'light'"
            alt="logo"
        />
        <img src="/image/zt.png" v-else alt="logo" />
        <div class="logo_head">
            <div>振涛教育</div>
            <div>zhentaojiaoyu</div>
        </div>
    </div>
</template>

<script setup lang="ts">
import { useStore } from '@/stores'

const store = useStore()
</script>

<style lang="scss">
.nvb_logo {
    height: 90px;
    display: flex;
    padding: 20px;
    align-items: center;
    border-bottom: 1px solid var(--bg);
    transition: all 0.3s;
    img {
        width: 60px;
        height: 60px;
        border-radius: 50px;
        transition: all 0.3s;
    }
    .logo_head {
        margin-left: 20px;
        transition: all 0.3s;
        transform: scale(1);
        transform-origin: left;
        > div:nth-child(1) {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 2px;
            color: var(--color-text-1);
        }
        > div:nth-child(2) {
            font-size: 12px;
            color: #777;
        }
    }
}

.collapsed {
    .nvb_logo {
        padding: 2px;
        img {
            width: 42px;
            height: 42px;
        }
        .logo_head {
            transform: scale(0);
        }
    }
}
</style>
